package ooday01;

public class Car {
    String brand;
    String coler;
    double price;
    int capacity;
    Car(){
    }
    //         宝马           白色           500000      5
    Car(String brand,String coler,double price,int capacity){
        this.brand=brand;//宝马
        this.coler=coler;//白色
        this.price=price;//500000
        this.capacity=capacity;//5
    }
    void start() {//         bm.brand                bm.coler                bm.price                bm.capacity
        System.out.println(this.brand + "牌子的，" + this.coler + "颜色的," + this.price + "价格的," + this.capacity + "载客量的车启动了.");
    }

    void run(){//            bm.brand                bm.coler                bm.price                bm.capacity
        System.out.println(this.brand + "牌子的，" + this.coler + "颜色的," + this.price + "价格的," + this.capacity + "载客量的车跑起来了.");
    }
    void stop(){//           bm.brand                bm.coler                bm.price                bm.capacity
        System.out.println(this.brand + "牌子的，" + this.coler + "颜色的," + this.price + "价格的," + this.capacity + "载客量的车停下来了了.");
    }
}